<%@include file="taglib_includes.jsp" %>

<html>
<head>

<title><spring:message code="App.Title"></spring:message> </title>
<script src="js/contacts.js" type="text/javascript">
</script>
</head>
<body style="font-family: Arial; font-size:smaller;">
 <center>
 <form action="searchContacts.do" method="post"><table style="border-collapse: collapse; width: 500px;" border="0" bordercolor="#006699"><tbody>
<tr>     <td>Enter Contact Name</td>      <td><input name="name" type="text">

&nbsp;&nbsp;<input value="Search" type="submit">

&nbsp;&nbsp;<input onclick="javascript:go('saveContact.do');" value="New Contact" type="button"></td></tr>
</tbody></table></form><c:if test="${empty SEARCH_CONTACTS_RESULTS_KEY}"> </c:if><c:if test="${! empty SEARCH_CONTACTS_RESULTS_KEY}">    <c:foreach items="${SEARCH_CONTACTS_RESULTS_KEY}" var="contact"> </c:foreach></c:if><table style="border-collapse: collapse; width: 500px;" border="1" bordercolor="#006699"><tbody>
<tr bgcolor="lightblue">    <th>Id</th>    <th>Name</th>       <th>Address</th>     <th>Mobile</th>    <th></th>   </tr>

<tr>    <td colspan="4">No Results found</td>   </tr>

<tr>     <td><c:out value="${contact.id}"></c:out></td>     <td><c:out value="${contact.name}"></c:out></td>     <td><c:out value="${contact.address}"></c:out> </td>     <td><c:out value="${contact.mobile}"></c:out></td>     <td>

&nbsp;<a href="http://www.blogger.com/updateContact.do?id=$%7Bcontact.id%7D">Edit</a>

&nbsp;&nbsp;<a href="javascript:deleteContact('deleteContact.do?id=${contact.id}');">Delete</a></td>    </tr>
</tbody></table></center>
  
</body>
</html>